﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005ED RID: 1517
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FriendHistoryInfo : IMessage<FriendHistoryInfo>, IMessage, IEquatable<FriendHistoryInfo>, IDeepCloneable<FriendHistoryInfo>, IBufferMessage
	{
		// Token: 0x17001380 RID: 4992
		// (get) Token: 0x0600444F RID: 17487 RVA: 0x000BAF38 File Offset: 0x000B9138
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FriendHistoryInfo> Parser
		{
			get
			{
				return FriendHistoryInfo._parser;
			}
		}

		// Token: 0x17001381 RID: 4993
		// (get) Token: 0x06004450 RID: 17488 RVA: 0x000BAF3F File Offset: 0x000B913F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FriendHistoryInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001382 RID: 4994
		// (get) Token: 0x06004451 RID: 17489 RVA: 0x000BAF51 File Offset: 0x000B9151
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FriendHistoryInfo.Descriptor;
			}
		}

		// Token: 0x06004452 RID: 17490 RVA: 0x000BAF58 File Offset: 0x000B9158
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendHistoryInfo()
		{
		}

		// Token: 0x06004453 RID: 17491 RVA: 0x000BAF60 File Offset: 0x000B9160
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendHistoryInfo(FriendHistoryInfo other) : this()
		{
			this.lastSendTime_ = other.lastSendTime_;
			this.contactId_ = other.contactId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004454 RID: 17492 RVA: 0x000BAF91 File Offset: 0x000B9191
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendHistoryInfo Clone()
		{
			return new FriendHistoryInfo(this);
		}

		// Token: 0x17001383 RID: 4995
		// (get) Token: 0x06004455 RID: 17493 RVA: 0x000BAF99 File Offset: 0x000B9199
		// (set) Token: 0x06004456 RID: 17494 RVA: 0x000BAFA1 File Offset: 0x000B91A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long LastSendTime
		{
			get
			{
				return this.lastSendTime_;
			}
			set
			{
				this.lastSendTime_ = value;
			}
		}

		// Token: 0x17001384 RID: 4996
		// (get) Token: 0x06004457 RID: 17495 RVA: 0x000BAFAA File Offset: 0x000B91AA
		// (set) Token: 0x06004458 RID: 17496 RVA: 0x000BAFB2 File Offset: 0x000B91B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ContactId
		{
			get
			{
				return this.contactId_;
			}
			set
			{
				this.contactId_ = value;
			}
		}

		// Token: 0x06004459 RID: 17497 RVA: 0x000BAFBB File Offset: 0x000B91BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FriendHistoryInfo);
		}

		// Token: 0x0600445A RID: 17498 RVA: 0x000BAFC9 File Offset: 0x000B91C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FriendHistoryInfo other)
		{
			return other != null && (other == this || (this.LastSendTime == other.LastSendTime && this.ContactId == other.ContactId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600445B RID: 17499 RVA: 0x000BB008 File Offset: 0x000B9208
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.LastSendTime != 0L)
			{
				num ^= this.LastSendTime.GetHashCode();
			}
			if (this.ContactId != 0U)
			{
				num ^= this.ContactId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600445C RID: 17500 RVA: 0x000BB060 File Offset: 0x000B9260
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600445D RID: 17501 RVA: 0x000BB068 File Offset: 0x000B9268
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600445E RID: 17502 RVA: 0x000BB074 File Offset: 0x000B9274
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ContactId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.ContactId);
			}
			if (this.LastSendTime != 0L)
			{
				output.WriteRawTag(72);
				output.WriteInt64(this.LastSendTime);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600445F RID: 17503 RVA: 0x000BB0D0 File Offset: 0x000B92D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.LastSendTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.LastSendTime);
			}
			if (this.ContactId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ContactId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004460 RID: 17504 RVA: 0x000BB128 File Offset: 0x000B9328
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FriendHistoryInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.LastSendTime != 0L)
			{
				this.LastSendTime = other.LastSendTime;
			}
			if (other.ContactId != 0U)
			{
				this.ContactId = other.ContactId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004461 RID: 17505 RVA: 0x000BB178 File Offset: 0x000B9378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004462 RID: 17506 RVA: 0x000BB184 File Offset: 0x000B9384
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.LastSendTime = input.ReadInt64();
					}
				}
				else
				{
					this.ContactId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001AEC RID: 6892
		private static readonly MessageParser<FriendHistoryInfo> _parser = new MessageParser<FriendHistoryInfo>(() => new FriendHistoryInfo());

		// Token: 0x04001AED RID: 6893
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001AEE RID: 6894
		public const int LastSendTimeFieldNumber = 9;

		// Token: 0x04001AEF RID: 6895
		private long lastSendTime_;

		// Token: 0x04001AF0 RID: 6896
		public const int ContactIdFieldNumber = 2;

		// Token: 0x04001AF1 RID: 6897
		private uint contactId_;
	}
}
